package com.boco.blch.analysiser.compliance.HW.manager;

import com.boco.blch.analysiser.compliance.ComplianceResolved;
import com.boco.blch.analysiser.util.XmlUtil;

public class BOCO_Hive_DataEncryptProtect_DataStorageEncrypt implements ComplianceResolved{

	private final static String EXPECT_RESULT = "Rcfile";
	private static final String TAG_NAME = "hive.default.fileformat";
	@Override
	public int realEchoResolved(String echoResult) {
		if(echoResult != null && echoResult.trim().length() > 0){
			String result = XmlUtil.getValueByName(echoResult, TAG_NAME);
			if(EXPECT_RESULT.equalsIgnoreCase(result))
				return SUCCESS;
		}
		return FAILED;
	}

}
